package com.mall.product.feign;

import com.mall.common.dto.SkuReductionDTO;
import com.mall.common.utils.R;
import com.mall.product.dto.SpuBoundsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-coupon")
public interface CouponFeignService {

    @RequestMapping("/coupon/spubounds/save")
    R save(@RequestBody SpuBoundsDTO spuBoundsDTO);

    @RequestMapping("/coupon/skufullreduction/save-sku-reduction")
    R saveSkuReduction(@RequestBody SkuReductionDTO skuReductionDTO);
}
